Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move dir-index-html + assets to a separate repo #1487

Merged
merged 1 commit into from
Aug 28, 2015
Merged

Conversation

rht
Copy link
Contributor

@rht rht commented Jul 16, 2015

(Commited while the dir-index-html repo is still empty)

@jbenet jbenet added the status/in-progress In progress label Jul 16, 2015
@rht rht force-pushed the gw-assets branch 4 times, most recently from 6e0e183 to a331674 Compare July 16, 2015 12:14
`))
var dirIndexPath = "vendor/src/QmeNXKecZ7CQagtkQUJxG3yS7UcvU6puS777dQsx3amkS7/dir-index-html/"
var dirIndex, _ = ioutil.ReadFile(dirIndexPath + "dir-index.html")
var listingTemplate = template.Must(template.New("dir").Funcs(template.FuncMap{"iconFromExt": iconFromExt}).Parse(string(dirIndex)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a bit hard to read, maybe:

var listingTemplate = template.Must(template.New("dir").Funcs(template.FuncMap{
  "iconFromExt": iconFromExt,
}).Parse(string(dirIndex)))

@rht rht force-pushed the gw-assets branch 14 times, most recently from 09692b3 to 886a534 Compare July 22, 2015 08:23
@jbenet jbenet mentioned this pull request Jul 27, 2015
43 tasks
"hash": "QmeNXKecZ7CQagtkQUJxG3yS7UcvU6puS777dQsx3amkS7"
}
]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool! yay gx \o/

@whyrusleeping @rht this will "just work" for people without gx since it's checked into the vendor/ dir, right? (in the future we can see about not having to vendor in-repo (and just vendor via ipfs) once gx+ipfs proves ultra reliable + intuitive for users)

we could bite the bullet and abandon go get and have the makefile install gx and fetch the things for the user. what do we want here for now?

@jbenet
Copy link
Member

jbenet commented Aug 2, 2015

this LGTM! maybe rebase and good to merge?

@rht
Copy link
Contributor Author

rht commented Aug 5, 2015

this will "just work" for people without gx since it's checked into the
vendor/ dir, right?

Yes, much like the generated code for protobuf.
Will rebase when possible.

On Sun, Aug 2, 2015 at 7:57 PM, Juan Benet notifications@github.com wrote:

this LGTM! maybe rebase and good to merge?


Reply to this email directly or view it on GitHub
#1487 (comment).

.

@jbenet
Copy link
Member

jbenet commented Aug 28, 2015

@rht maybe rebase this on new master?

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
@rht
Copy link
Contributor Author

rht commented Aug 28, 2015

@jbenet rebased

jbenet added a commit that referenced this pull request Aug 28, 2015
Move dir-index-html + assets to a separate repo
@jbenet jbenet merged commit 1dac829 into ipfs:master Aug 28, 2015
@rht rht deleted the gw-assets branch August 30, 2015 01:21
hacdias pushed a commit to ipfs/boxo that referenced this pull request Jan 27, 2023
Move dir-index-html + assets to a separate repo

This commit was moved from ipfs/kubo@1dac829
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants